package com.example.xyh.service;

import com.example.xyh.entity.OrderTable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderTableService {
    OrderTable addOrderTable(Integer order_id, Integer customer_id, Integer shop_id, Integer order_state, Double order_cost);

    List<OrderTable> findByCustomerId(Integer customer_id);

    OrderTable findByOrderId(Integer order_id);

    List<OrderTable> findByShopShopId(Integer shop_id);

    List<OrderTable> findByOrderState(Integer order_state);

    List<OrderTable> findByCustomerIdAndShopShopIdAndOrderState(Integer customer_id, Integer shop_id, Integer order_state);

}
